#ifndef CHESSPANELRECVIEW_H
#define CHESSPANELRECVIEW_H

#include "Headers.h"
#include "View.h"

class ChessPanelRecView : public QWidget, public View
{
    Q_OBJECT
private:
    QComboBox * comboGameList;

    QPushButton * buttonStart;
    QPushButton * buttonPause;
    QPushButton * buttonStop;

    QLabel * labelEvent;
    QLabel * labelSite;
    QLabel * labelDate;
    QLabel * labelRound;
    QLabel * labelPlayerWhite;
    QLabel * labelPlayerBlack;
    QLabel * labelResult;
    QLabel * labelECO;
    QLabel * labelWhiteElo;
    QLabel * labelBlackElo;
    QLabel * labelAnnotator;

    QGroupBox * groupGameList();
    QGroupBox * groupGameInfo();
public:
    explicit ChessPanelRecView(QWidget *parent = 0);

    void init();
    void addGameToList(const QString & game);
    void setGameInfo(const QMap<QString, QString> &gameInfo);

signals:
    void gameListIndexChangedSignal(int index);
    void startSimulation();
    void pause();
    void resume();
    void stop();
public slots:
    void gameListIndexChanged(int index);
    void start();
    void pauseOrResume();
    void stopSimulation();
};

#endif // CHESSPANELVIEW_H
